﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Authority
{
    /// <summary>
    /// 角色
    /// </summary>
    [Serializable]
    public class Role
    {
        /// <summary>
        /// 角色id
        /// </summary>
        public Guid ID { get; set; }

        /// <summary>
        /// 角色操作的页面视图信息
        /// </summary>
        public List<View> ViewList { get; set; }

        /// <summary>
        /// 构造器
        /// </summary>
        public Role()
        {
            this.ViewList = new List<View>();
        }

        /// <summary>
        /// 文字显示
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return string.Format("ID={0}", this.ID);
        }
    }
}
